
import pymysql

con = pymysql.Connect(host="127.0.0.1",port=3306,user="root",password="123456",database="das")


cur = con.cursor()

count = cur.execute("drop table tmp ")

for i in range(count):
    print(cur.fetchone())

print(count)

con.close()
cur.close()